export default {
  server: {
    port: 8000, // default: 3000
    host: '0.0.0.0' // default: localhost
  },
  loading: { color: '#fff' },
  router: {
    middleware: 'i18n'
  },
  head: {
    title: 'ePro易豹清洁官网',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: 'ePro是易宝智能（ePRO SMART）旗下全球智能清洁高端品牌，集智能清洁产品的研发、生产、制造、销售为一体。其销售渠道遍布全球主流渠道商，与Walmart、Costco 、Target、Home Depot等国外知名零售渠道拥有长期稳定的合作。' },
      { name: 'format-detection', content: 'telephone=no' },
      {
        hid: "keywords",
        name: "keywords",
        content: "EPRO易宝,EPRO,易宝,易豹,易宝智能硬件,洗地机,吸尘器,扫地机,清洁,易宝清洁"
      },
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ],
  },
  css: [
    '~/assets/css/main.less',
    "~/plugins/animate.min.css",
    'element-ui/lib/theme-chalk/index.css',
    'hover.css'
  ],
  plugins: [
    '~/plugins/i18n.js',
    '~/plugins/element-ui.js',
    '~/plugins/request.js',
    {
      src: '~/plugins/vue-swiper.js',
      ssr: false
    },
    {
      src: '~/plugins/rem',
      ssr: false
    },
    {
      src: "~/plugins/baidu-map",
      ssr: false
    },
  ],
  generate: {
    routes: ['/', '/about', '/cn', '/cn/about']
  },
  build: {
    vendor: ['element-ui']
  },
  modules: [
    '@nuxtjs/axios'
  ],
  // 需要代理，可以打开底下的注释
  // axios: {
  //   proxy: true
  // },
  // proxy: {
  //   '/api': 'http://139.155.79.39:9999/'
  // },
}
